Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makes session cookie secure, httponly and set same site attribute #209

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

gs-saurabh
Copy link
Contributor

No description provided.

@gs-saurabh gs-saurabh requested a review from a team as a code owner October 4, 2024 11:17

private void makeSessionCookieSecure( ContextHandler.Context servletContext)
{
SessionCookieConfig sessionCookieConfig = servletContext.getSessionCookieConfig();
Copy link
Contributor

@rafaelbey rafaelbey Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this ever be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have seen "JSESSIONID" getting always created with Dropwizard and Jetty so ideally SessionCookieConfig should not be null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, added null check to avoid potential NPE.

Yasirmod17
Yasirmod17 previously approved these changes Oct 16, 2024
@Yasirmod17 Yasirmod17 merged commit 826ed8f into finos:master Oct 16, 2024
4 checks passed
Copy link

Test Results

10 files  10 suites   11s ⏱️
28 tests 28 ✔️ 0 💤 0

Results for commit 9c6b46b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants